package com.example.demo.service.serviceImpl;

import com.example.demo.dao.ReserveRecordsDao;
import com.example.demo.entity.ReserveRecords;
import com.example.demo.service.ReserveRecordsService;
import com.example.demo.util.Result;
import com.example.demo.util.ResultSubmit;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * (ReserveRecords)表服务实现类
 *
 * @author makejava
 * @since 2025-04-22 15:01:03
 */
@Service
public class ReserveRecordsServiceImpl implements ReserveRecordsService {
    @Resource
    private ReserveRecordsDao dao;

    @Override
    public Result queryAll(ReserveRecords reserveRecords) {
        return ResultSubmit.success(dao.queryAll(reserveRecords));
    }

    @Override
    public int insert(ReserveRecords reserveRecords) {
        return dao.insert(reserveRecords);
    }
}
